<#include "/includes/header.ftl">
<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
	<TD width="160" height="100" valign="top"><#include "includes/leftbar.ftl"></TD>	
	<TD valign="top" width="90%">
	<#-- Main Content-->
		<table width="100%" border="0">
		  <tr>
		    <th colspan="7" align='center'><A href='<@spring.url "/myspace.jsp"/>'>我的空间</A>---我的优惠券</th>
		  </tr>
		  <tr>
		    <th colspan="7" align='right'><hr></th>
		  </tr>
		  
			<tr>
			  <th nowrap>店铺</th>
			  <th nowrap>优惠券编号</th>
			  <th nowrap>赠券编号</th>
			  <th nowrap>抽奖期号</th>
			  <th nowrap>抽奖日期</th>
			  <th nowrap>抽奖号码</th>
			</tr>

			<#if couponItemList?has_content>
			<#list couponItemList as ci>
			<tr>
			  <th nowrap><#if ci.site?has_content><A href='<@spring.url "/viewstoredetail.jsp?ssid=${ci.site.sysId}"/>'>${ci.site.name?default("No-Name")}</A></#if></th>
			  <th nowrap><A href='<@spring.url "/viewstorecoupondetail.jsp?csid=${ci.coupon.sysId}"/>'><IMG src='IMAGES/COUPON/COUPON_DEFAULT.JPG' width="160" height="100"></A><br>${ci.coupon.contentId}</th>
			  <th scope="row" nowrap>${ci.couponItemId}</th>
			  <th nowrap>${ci.issueId?default(-1)}</th>
			  <th nowrap>${ci.createdDate?string("yyyy-MM-dd")}</th>
			  <th nowrap>
			  <#if ci.lotteryNumber0?has_content>
					<#if ci.lotteryNumber0?has_content>${ci.lotteryNumber0?default("")},&nbsp;&nbsp;</#if>
				  <#if ci.lotteryNumber1?has_content>${ci.lotteryNumber1?default("")},&nbsp;&nbsp;</#if>
				  <#if ci.lotteryNumber2?has_content>${ci.lotteryNumber2?default("")},&nbsp;&nbsp;</#if>
				  <#if ci.lotteryNumber3?has_content>${ci.lotteryNumber3?default("")},&nbsp;&nbsp;</#if>
				  <#if ci.lotteryNumber4?has_content>${ci.lotteryNumber4?default("")},&nbsp;&nbsp;</#if>
			  <#else>
			  <A href='<@spring.url "/editmycouponitem.jsp?cisid=${ci.sysId}"/>'>请填写抽奖号码</A>
			  </#if>
			  </th>
			</tr>
			</#list>
			</#if>
	  
  </table>	
	<#-- /Main Content-->
	</TD>	
</TR>
</TABLE>

<#include "/includes/footer.ftl">